package online.longzipeng.householdbillssystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import online.longzipeng.householdbillssystem.business.entity.Bill;
import online.longzipeng.householdbillssystem.business.vo.bill.QueryBillVO;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzp
 * @since 2021-04-17
 */
@Repository
public interface BillMapper extends BaseMapper<Bill> {

    /**
     * 根据条件查询当前用户所属用户组下的所有账单
     */
    IPage<Bill> getListGroupPage(Page<Bill> page, QueryBillVO queryVO, Long userId);

    /**
     * 根据条件查询当前用户所有的账单
     */
    IPage<Bill> getAllListPage(Page<Bill> page, QueryBillVO queryVO, Long userId);
}
